<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>学生成绩管理系统</title>
<link rel="stylesheet" type="text/css" id="css" href="../style/main.css" />
<link rel="stylesheet" type="text/css" id="css"
	href="../style/style1.css" />
<link rel="stylesheet" type="text/css" id="css"
	href="../style/style.css" />

<style type="text/css">
<!--
table {
	border-spacing: 1px;
	border: 1px solid #A2C0DA;
}

td, th {
	padding: 2px 5px;
	border-collapse: collapse;
	text-align: left;
	font-weight: normal;
}

thead tr th {
	height: 50px;
	background: #B0D1FC;
	border: 1px solid white;
}

thead tr th.line1 {
	background: #D3E5FD;
}

thead tr th.line4 {
	background: #C6C6C6;
}

tbody tr td {
	height: 35px;
	background: #CBE2FB;
	border: 1px solid white;
	vertical-align: middle;
}

tbody tr td.line4 {
	background: #D5D6D8;
}

tbody tr th {
	height: 35px;
	background: #DFEDFF;
	border: 1px solid white;
	vertical-align: middle;
}

tfoot tr td {
	height: 35px;
	background: #FFFFFF;
	border: 1px solid white;
	vertical-align: middle;
}
-->
</style>

<script type="text/javascript" src="../js/common.js"></script>
</head>
<c:if test="${!(empty sessionScope.message)}">
	<script type="text/javascript">
		alert('<c:out value="${sessionScope.message}"/>');
	</script>
	<c:remove var="message" scope="session" />
</c:if>
<body>
	<div id="btm">
		<div id="main">

			<div id="header">
				<div id="top"></div>
				<div id="logo">
					<h1>教师管理</h1>
				</div>
				<div id="mainnav">
					<ul>
						<li><a href="../admin/adminIndex.jsp">首页</a></li>
						<li><a href="listAllStudentServlet">学生管理</a></li>
						<li><a href="listAllTeacherServlet">教师管理</a></li>
						<li><a href="listAllCourseServlet">课程管理</a></li>
						<li><a href="dealWithScore.jsp">成绩处理</a></li>
						<li><a href="../logoutServlet">退出登录</a></li>
					</ul>
					<span> </span>
				</div>
			</div>
			<div id="content" align="center">
				<div id="center">
					<BR /> <BR />
					<form method="post" action="checkTeacherServlet">
						<table width="800" align="center" cellpadding="0" cellspacing="0">
							<thead>
								<tr>
									<td width="70%"><h5>
											教师管理-->教师列表显示&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a
												href="addTeacher.jsp">添加教师</a>
										</h5></td>

								</tr>

							</thead>

							<tr>
								<td colspan="2" width="100%">
									<table width="100%">
										<thead>

											<tr>
												<th align="center" class="line1" scope="col" colspan="12">
													<b><font color="red">请输入查询统计条件：</font></b>
												</th>
											</tr>
											<tr>
												<th align="center" class="line1" scope="col" colspan="3">
													<b>教师编号</b>
												</th>
												<th align="center" scope="col" colspan="1"><input
													name="teacherNo" value="${requestScope.teacherNo }" /></th>
												<th align="center" scope="col" colspan="3"><b>教师姓名</b>
												</th>
												<th align="center" scope="col" colspan="1"><input
													name="teacherName" value="${requestScope.teacherName }" />
												</th>
												<th align="center" scope="col" colspan="3"><b>职称</b></th>
												<th align="center" scope="col" colspan="1"><select
													name="professional">
														<c:if test="${requestScope.professional==0}">
															<option value="">请选择职称...</option>
															<option value="0" selected>教授</option>
															<option value="1">副教授</option>
															<option value="2">讲师</option>
															<option value="3">助教</option>
															<option value="4">其他</option>
														</c:if>
														<c:if test="${requestScope.professional==1}">
															<option value="">请选择职称...</option>
															<option value="0">教授</option>
															<option value="1" selected>副教授</option>
															<option value="2">讲师</option>
															<option value="3">助教</option>
															<option value="4">其他</option>
														</c:if>
														<c:if test="${requestScope.professional==2}">
															<option value="">请选择职称...</option>
															<option value="0">教授</option>
															<option value="1">副教授</option>
															<option value="2" selected>讲师</option>
															<option value="3">助教</option>
															<option value="4">其他</option>
														</c:if>
														<c:if test="${requestScope.professional==3}">
															<option value="">请选择职称...</option>
															<option value="0">教授</option>
															<option value="1">副教授</option>
															<option value="2">讲师</option>
															<option value="3" selected>助教</option>
															<option value="4">其他</option>
														</c:if>
														<c:if test="${requestScope.professional==4}">
															<option value="">请选择职称...</option>
															<option value="0">教授</option>
															<option value="1">副教授</option>
															<option value="2">讲师</option>
															<option value="3">助教</option>
															<option value="4" selected>其他</option>
														</c:if>
														<c:if test="${requestScope.professional==null}">
															<option value="" selected>请选择职称...</option>
															<option value="0">教授</option>
															<option value="1">副教授</option>
															<option value="2">讲师</option>
															<option value="3">助教</option>
															<option value="4">其他</option>
														</c:if>
												</select></th>
											</tr>
											<tr>
												<th align="center" class="line1" scope="col" colspan="3">
													<b>联系电话</b>
												</th>
												<th align="center" scope="col" colspan="1"><input
													name="phone" value="${requestScope.phone }" /></th>
												<th align="center" class="line1" scope="col" colspan="4">
													<input type="submit" value="查询" />
												</th>
											</tr>

											<tr>
												<th width="10%" align="center" scope="col"
													colspan="2"><b>教师编号</b></th>
												<th width="10%" align="center"  scope="col" colspan="1"><b>教师姓名</b></th>
												<th width="10%" align="center" scope="col" colspan="1">
													<b>教师职称</b>
												</th>
												<th width="15%" align="center" scope="col" colspan="2">
													<b>联系电话</b>
												</th>
												<th width="15%" align="center" scope="col" colspan="2">
													<b>学历</b>
												</th>
												<th width="15%" align="center" scope="col" colspan="2">
													<b>Email</b>
												</th>
												<th width="15%" align="center" colspan="2"><b>操作</b></th>
											</tr>
										</thead>

										<tbody>
											<c:forEach items="${requestScope.list}" var="teacher">
												<tr>
													<td width="10%" align="center" colspan="2">${teacher.teacherNo }</a>
													</td>
													<td width="10%" align="center" colspan="1">${teacher.teacherName }</a>
													</td>
													<td width="10%" align="center" colspan="1"><c:if
															test="${teacher.professional==0 }">教授</c:if> <c:if
															test="${teacher.professional==1 }">副教授</c:if> <c:if
															test="${teacher.professional==2 }">讲师</c:if> <c:if
															test="${teacher.professional==3 }">助教</c:if> <c:if
															test="${teacher.professional==4 }">其他</c:if></td>
													<td width="15%" align="center" colspan="2">
														${teacher.phone }</td>
													<td width="15%" align="center" colspan="2">
														${teacher.education }</td>
													<td width="15%" align="center" colspan="2">
														${teacher.email }</td>
													<td width="15%" align="center" colspan="2"><a
														href='<c:url value="deleteTeacherServlet?teacherNo=${teacher.teacherNo }"></c:url>'><font
															color=red>删除</font></a> | <a
														href='<c:url value="showTeacherServlet?teacherNo=${teacher.teacherNo }"></c:url>'><font
															color=red>查看/修改</font></a></td>
												</tr>
											</c:forEach>

										</tbody>
										<tbody>
											<tr>
												<td align="center" colspan="12"><c:if
														test="${requestScope.pageCount!=0&&requestScope.curPage!=1}">
														<a
															href='<c:url value="checkTeacherServlet?curPage=1&teacherNo=${requestScope.teacherNo}&teacherName=${requestScope.teacherName}&professional=${requestScope.professional}&phone=${requestScope.phone}&subject=${requestScope.subject}"/>'>首页</a>
														<a
															href='<c:url value="checkTeacherServlet?curPage=${requestScope.curPage-1}&teacherNo=${requestScope.teacherNo}&teacherName=${requestScope.teacherName}&professional=${requestScope.professional}&phone=${requestScope.phone}&subject=${requestScope.subject}"/>'>前一页</a>
													</c:if> <c:if
														test="${requestScope.pageCount==0||requestScope.curPage==1}">首页 前一页</c:if>
													<c:if
														test="${requestScope.pageCount!=0&&requestScope.curPage!=requestScope.pageCount}">
														<a
															href='<c:url value="checkTeacherServlet?curPage=${requestScope.curPage+1}&teacherNo=${requestScope.teacherNo}&teacherName=${requestScope.teacherName}&professional=${requestScope.professional}&phone=${requestScope.phone}&subject=${requestScope.subject}"/>'>下一页</a>
														<a
															href='<c:url value="checkTeacherServlet?curPage=${requestScope.pageCount}&teacherNo=${requestScope.teacherNo}&teacherName=${requestScope.teacherName}&professional=${requestScope.professional}&phone=${requestScope.phone}&subject=${requestScope.subject}"/>'>尾页</a>
													</c:if> <c:if
														test="${requestScope.pageCount==0||requestScope.curPage==requestScope.pageCount}">下一页 尾页</c:if>
													&nbsp;
													第${requestScope.curPage}页/共${requestScope.pageCount}页
													&nbsp;</td>
											</tr>
										</tbody>

									</table>
								</td>
							</tr>
						</table>
					</form>




				</div>



			</div>

			<div id="footer">
				<div id="copyright">
					<div id="copy">
						<p align="center">CopyRight&copy;2010</p>
						<p>南京晓庄学院信息工程学院</p>
					</div>
				</div>
				<div id="bgbottom"></div>
			</div>

		</div>
	</div>
</body>
</html>
